package com.ruoyi.material.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作记录模块对象 material_operate
 * 
 * @author ruoyi
 * @date 2025-08-23
 */
public class MaterialOperate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作id */
    private Long operateId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 仓库id */
    private Integer warehouseId;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String materialName;

    /** 物资id */
    private String materialId;

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    /** 操作类型（1=进货，2=出库） */
    @Excel(name = "操作类型", readConverterExp = "1==进货，2=出库")
    private Integer operateType;

    /** 操作数量（进货为正，出库为负） */
    @Excel(name = "操作数量", readConverterExp = "进=货为正，出库为负")
    private Long quantity;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    public void setOperateId(Long operateId) 
    {
        this.operateId = operateId;
    }

    public Long getOperateId() 
    {
        return operateId;
    }


    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public void setOperateType(Integer operateType)
    {
        this.operateType = operateType;
    }

    public Integer getOperateType() 
    {
        return operateType;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateId", getOperateId())
            .append("warehouseId", getWarehouseName())
            .append("materialId", getMaterialName())
            .append("operateType", getOperateType())
            .append("quantity", getQuantity())
            .append("operateTime", getOperateTime())
            .append("remark", getRemark())
            .toString();
    }
}
